Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An attempt at #29 #1335

Merged
merged 7 commits into from
Nov 2, 2024
Merged

Conversation

n0rbed
Copy link
Member

@n0rbed n0rbed commented Oct 31, 2024

Hello,
to tackle #29 :

julia> eq = ((s^2 + 1)/(s^2 + 2*s + 1)) - ((s^2 + a)/(b*c*s^2 + (b+c)*s + d))
(-a - (s^2)) / (d + (b + c)*s + b*c*(s^2)) + (1 + s^2) / (1 + 2s + s^2)

julia> Symbolics.solve_interms_ofvar(eq, s)
2-element Vector{Any}:
 Dict{Num, Any}(a => 1, d => 1, b => 1, c => 1)
 Dict{Num, Any}(a => 1, d => 1, b => 1, c => 1)

(The multiplicity is a bug stemming from symbolic_solve, not this function).

The goal of this function is to multiply by any denominator it finds first in order to get a polynomial like shape. It then uses polynomial_coeffs in order to get the coefficients of the "ignored" variable - s - Afterwards, it constructs a system of polys by doing specific_coeff = 0. Then solves them using symbolic_solve.

I also wrote a small attempt at using ia_solve recursively, but ia_solve is somewhat limited in this regard and i also dont have much time (midterms :^) )

@n0rbed
Copy link
Member Author

n0rbed commented Oct 31, 2024

a naming suggestion instead of new_feature.jl would be appreciated

@codecov-commenter
Copy link

codecov-commenter commented Oct 31, 2024

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

Attention: Patch coverage is 0% with 59 lines in your changes missing coverage. Please review.

Project coverage is 78.01%. Comparing base (3e31a75) to head (63b17a0).
Report is 6 commits behind head on master.

Files with missing lines Patch % Lines
src/solver/ia_rules.jl 0.00% 59 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@             Coverage Diff             @@
##           master    #1335       +/-   ##
===========================================
+ Coverage    6.69%   78.01%   +71.31%     
===========================================
  Files          47       48        +1     
  Lines        4618     4766      +148     
===========================================
+ Hits          309     3718     +3409     
+ Misses       4309     1048     -3261     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ChrisRackauckas
Copy link
Member

ia_rules.jl?

@ChrisRackauckas ChrisRackauckas merged commit 942c56e into JuliaSymbolics:master Nov 2, 2024
10 of 12 checks passed
@baggepinnen
Copy link
Collaborator

No docs and no tests?

@n0rbed
Copy link
Member Author

n0rbed commented Nov 2, 2024

No docs and no tests?

This isn't gonna be used by the public yet so it wasnt a high priority to add docs. Will add tests when i can

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants